package br.ufmg.ubicomp.droidguide.eventservice.event;

import java.util.Collections;
import java.util.HashSet;
import java.util.Set;


/**
 * container class responsible for holding the event filters for the user.
 * @author wpjr
 *
 */
public class EventFilter {

	private Set<EventFilterElement> elements;
	
	public EventFilter() {
		elements = new HashSet<EventFilterElement>(); 
	}
	
	public void addElement(EventFilterElement element)
	{
		elements.add(element);
	}
	
	public void removeElement(EventFilterElement element)
	{
		elements.remove(element);
	}	
	
	public Set<EventFilterElement> getElements()
	{
		return Collections.unmodifiableSet(elements);
	}
}